extends ../template/base

block stylesheet
    link(type="text/css",rel="stylesheet",href="#{rootPath}/module/css/create.css")

block header
    include ../template/header
block left
    include ../template/left

block right
    #right
        .navigation
            .ui.breadcrumb
                .section 首页
                i.right.angle.icon.divider
                .section 栏目定义
                i.right.angle.icon.divider
                .active.section 栏目创建
        .module_create
            .entry.item
                input(type='text', v-model="params.name", placeholder='请输入栏目名称')
            .entry.item
                input(type='text', v-model="params.childName", placeholder='请输入栏目子名称')
            .entry.item
                input(type='text', v-model="params.infUrl", placeholder='接口地址,服务器自动分配' disabled="true" )
            .entry.item
                input(type='text', v-model="params.imgUrl" ,placeholder='请上传栏目图标地址', disabled="disabled")
                .img(v-on:click="select('imgIcon')")
                    img(v-bind:src="imgUrl()")
                input(type='file',v-on:change="change($event)",id="imgIcon",name="imgIcon", style="display:none;")
                span.upload(v-on:click="upload('imgIcon')") 上传
            .entry.submit
                span.save(v-on:click="save") 保存

block javascript
    script(type='text/javascript',src='#{rootPath}/common/lib/ajaxfileupload.js')
    script(type='text/javascript',src='#{rootPath}/module/js/create.js')

